﻿namespace Haidou.Wpf.Util.Converters
{
	public static class BoolConverter
	{
		public static bool ToBoolean(this string value)
		{
			//string forceDownloadValue = value;
			//bool forceDownload;
			//bool success = bool.TryParse(forceDownloadValue, out forceDownload);

			//if (!success)
			//{
			//	// 处理解析失败的情况
			//	Console.WriteLine("Failed to parse boolean value.");
			//}

			return bool.Parse(value.Trim().ToLower());
		}
	}
}
